from likeshop_project.BASE.myBase import Tools
from likeshop_project.API.login_api import login_module


class goodsCategory_module(Tools):
    path = "api/goods_category/lists"

    def goodsCategory_action(self,client):
        url = self.host_url + self.path
        data = {
            'client': client,
        }
        head = login_module(session=self.session).get_head()
        msg = self.session.get(url=url, params=data, headers=head)
        return msg.json()
